﻿/*-------------------------------------------------------------------------
* 命名空间: MyToDo.ValuesConverters/StateToStringConverter
* 类       名: StateToStringConverter
* 功      能:  状态转换为字符换的转换器
* 时      间:  2023/12/13 14:30:34
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using System;
using System.Globalization;


namespace MyToDo.ValuesConverters
{
    public class StateToStringConverter : OneWayConverter
    {
        public override object Convert(object Value, Type TargetType, object Parameter, CultureInfo Culture)
        {
            string res = "";
            switch (Value)
            {
                case string str:
                    if (str.Equals("Max"))
                        res = "还原";
                    else if (str.Equals("Normal"))
                        res = "最大化";
                    break;
            }
            return res;
        }
    }
}
